package com.company;

import java.util.Scanner;

/**
 * @author Administrator
 */

public class HJ13句子逆序 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();

        String[] strings = input.split(" ");
        for (int i = strings.length; i > 0; i--) {
            System.out.print(strings[i - 1] + " ");
        }
    }

}
